/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.thread;

/**
 * <p>Project: javaseapp - Demo
 * <p>Powered by webrx On 2021-08-27 16:15:41
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Demo {
    public static void main(String[] args) {
        var u = new User(1, "jack", 80);
        System.out.println(u.id());
        System.out.println(u);

        User li = new User(2, "李四", 88);
        var wu = new User(3, "王五", 99);
        System.out.println(li.id());
        System.out.println(li.name());
        System.out.println(li.score());
        System.out.println(li.hashCode());
        System.out.println(li.toString());
        System.out.println(li);
        System.out.println(li.equals(wu));
        System.out.println(li == wu);
        System.out.println(li instanceof User);

        li.show();
    }
}
